   <style type="text/css">
     .form-reason{display:none;}
   </style>
    <form action="/admin/agent/audit/{{$agent->id}}" method="POST" id="myform">
      {{csrf_field()}}
        <div class="box-body">
              <div class="form-group">
                <label>审核结果：</label>
                <label>
                  <input type="radio" name="status" class="minimal radio" checked value="1"> 通过
                </label>
                <label>
                  <input type="radio" name="status" class="minimal-red radio" value="2"> 驳回
                </label>
              </div>
              <span style="color:red" id="err_status"></span>

              <div class="form-group">
                <label>分成比例：</label>
                <input type="text" name="divide" class="form-control" placeholder="请输入推广员分成比例（整数）">
              </div>
              <span style="color:red" id="err_divide"></span>

              <div class="form-group form-reason">
                <label>原因：</label>
                <textarea class="form-control" name="reason" rows="3" placeholder="请输入驳回原因"></textarea>
              </div>

        </div>
    </form>
    <script type="text/javascript">
        //iCheck for checkbox and radio inputs
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
          checkboxClass: 'icheckbox_minimal-blue',
          radioClass: 'iradio_minimal-blue'
        });
        //Red color scheme for iCheck
        $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
          checkboxClass: 'icheckbox_minimal-red',
          radioClass: 'iradio_minimal-red'
        });

        $('input[type="radio"]').on("ifChecked", function(event){
          if ($(this).val() == 1) {//通过
            $('.form-reason').css('display', 'none');
          } else {//驳回
            $('.form-reason').css('display', 'block');
          }
        });
    </script>